(Mali)Do not create buffers with CL_MEM_USE_HOST_PTR if possible

原文地址:http://infocenter.arm.com/help/index.jsp?topic=%2Fcom.arm.doc.dui0538f%2FCIHEGGGA.html

The Mali GPU can access the memory buffers created by clCreateBuffer(CL_MEM_USE_HOST_PTR) but buffers created this way must have data copied into them by the application processor. These copy operations are computationally expensive so it is best to avoid this method of allocating buffers if possible. This method of allocating buffers is shown in Figure 9.3.

在Mali-T600系列的GPU OpenCL develoer Guide中有上述的介绍,如果使用CL_MEM_USE_HOST_PTR则会有memory copy的effort,所有Arm不推荐这样使用,但是如何使用时最优的,还需要调查一下,后续再补充进来。